package org.zjx.data.screen;

import org.zjx.command.entity.screen.Room;
import org.zjx.data.BaseSceneBuilder;

import java.awt.*;

public class ShiTuoLingSceneBuilder extends BaseSceneBuilder {

    @Override
    protected String getSceneName() {
        return "狮驼岭";
    }

    @Override
    protected Dimension getSceneSize() {
        return new Dimension(131, 98);
    }

    @Override
    protected void addMonsters() {

    }

    @Override
    protected void addNpcs() {
        addNpc("传送妖精", new Point(112, 27));
        addNpc("守山小妖", new Point(112, 92));
        addNpc("守山小妖", new Point(119, 86));
    }

    @Override
    protected void addRooms() {
        Room daXiangDong = createRoom("大象洞", null);
        addNpcToRoom(daXiangDong, "二大王", new Point(30, 15));
        rooms.add(daXiangDong);

        Room laoDiaoDong = createRoom("老雕洞", null);
        addNpcToRoom(laoDiaoDong, "三大王", new Point(26, 16));
        rooms.add(laoDiaoDong);

        Room shiWangDong = createRoom("狮王洞", new Dimension(57, 38));
        addNpcToRoom(shiWangDong, "大大王", new Point(28, 19));
        rooms.add(shiWangDong);
    }

    @Override
    protected void addTeleports() {
        addSceneTeleport(new Point(118, 90), "大唐境外", new Point(8, 49), new Point(123, 95));
        addSceneTeleport(new Point(26, 82), "大象洞", new Point(29, 8), new Point(27, 86));
        addSceneTeleport(new Point(14, 39), "老雕洞", new Point(14, 10), new Point(15, 42));
        addSceneTeleport(new Point(114, 24), "狮王洞", new Point(15, 13), new Point(117, 28));

        addRoomTeleport(new Point(26, 82), "大象洞", new Point(29, 8), new Point(27, 86));
        addRoomTeleport(new Point(14, 39), "老雕洞", new Point(14, 10), new Point(15, 42));
        addRoomTeleport(new Point(114, 24), "狮王洞", new Point(15, 13), new Point(117, 28));
    }

    public static void main(String[] args) {
        new ShiTuoLingSceneBuilder().execute("shituoling_scene.json", "狮驼岭");
    }
}